﻿using MgSoft.K3Cloud.WebApi.Common.Dto.Stk;
using MgSoft.K3Cloud.WebApi.Dto;
using System;
using System.Collections.Generic;
using System.Text;

namespace MgSoft.K3Cloud.WebApi.Common.Api.Stk
{
    public class Stk_StockCountLossApi : BaseApi, IStk_StockCountLossApi
    {
        protected override string formId => "STK_StockCountLoss";
        public Stk_StockCountLossApi(ApiServerInfo apiServerInfo, IMgLogger logger = null) : base(apiServerInfo, logger)
        {
        }

        public Stk_StockCountLossApi(string serverUrl, string dbid, string userName, string password, int lcid = 2052) : base(serverUrl, dbid, userName, password, lcid)
        {
        }

        public List<SaveOutPutDto> Save(Stk_StockCountLossSaveInputDto stk_StockCountLossSaveInputDto)
        {
            return base.Save(new SaveInputDto()
            {
                Model = stk_StockCountLossSaveInputDto
            });
        }
    }
}
